/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DataObject;

import java.io.Serializable;

/**
 *
 * @author MinhNhat
 */
public class MyData implements Serializable {

    public String Column;
    public String Value;
    public int id;
    public boolean isKey;
    public String Type;
    public MyData() {
    }

    public MyData(MyColumn column, String value) {
        Column = column.Name; 
        Value = value;
        id = column.id;
        isKey = column.isKey;
        Type = column.Type;
    }
    
    public MyData(String nameColumn, String value, String type, int Id, boolean IsKey)
    {
        Column = nameColumn;
        Value = value;
        id = Id;
        isKey = isKey;
        Type = type;
    }
    
    public boolean isInteger()
    {
        if(Type.equalsIgnoreCase("integer"))
        {
            return true;
        }
        return false;
    }

    public void Print() {
        System.out.print(Column + ": " + Value + "\t");
    }
}
